#ifndef SNAKENODE_H
#define SNAKENODE_H

#include <QObject>

/**
 * 贪吃蛇 节点类
 * @brief The SnakeNode class
 */
class SnakeNode : public QObject
{
    Q_OBJECT
public:
    explicit SnakeNode(int x, int y, QObject *parent = nullptr);
    ~SnakeNode();
    //设置x坐标
    void setX(int x);
    //获取x坐标
     int getX();
    //设置y坐标
    void setY(int y);
    //获取y坐标
     int getY();

signals:

public slots:
private:
     int x; //x坐标
     int y; //y坐标
};

#endif // SNAKENODE_H
